from collections import deque

d = deque(range(10))
print('Normal :', d)

d = deque(range(10))
d.rotate(2)
print('Right rotation: ', d)

d = deque(range(10))
d.rotate(-2)
print('Left rotation: ', d)
